package com.beasu.tingting.utils

import java.net.URLDecoder
import java.net.URLEncoder

class ConvertByUrl : IConvertNotAscii {
    override fun convertToAscii(s: String): String {
            return  URLEncoder.encode(s,"utf-8")
    }

    override fun convertToText(s: String): String {
        return URLDecoder.decode(s,"utf-8")
    }
    companion object{
        val instance= ConvertByUrl()
    }

}